Skip to content

Clam 2410 new coverity issues#989

Merged
val-ms merged 3 commits intoCisco-Talos:mainfrom
val-ms:CLAM-2410-new-coverity-issues
Aug 8, 2023
Merged

Clam 2410 new coverity issues#989
val-ms merged 3 commits intoCisco-Talos:mainfrom
val-ms:CLAM-2410-new-coverity-issues

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Aug 7, 2023

Fix a handful of coverity issues in recently added code.

val-ms added 3 commits August 7, 2023 15:29
In `cli_scanudf()` it's possible to `goto done;` before memset'inng the
fileIdentifierList and fileEntryList. This would likely cause
uninitialized pointer reads.

Instead of memset, just initialize the structs with `= {0};`
Missing a NULL-check before calling `cli_unlink()` which has no NULL
check of its own before calling `unlink`.
@val-ms val-ms requested a review from ragusaa August 7, 2023 22:40
@ragusaa
Copy link
Contributor

ragusaa commented Aug 8, 2023

Code looks good, unit tests all pass.

@val-ms val-ms merged commit 4c34301 into Cisco-Talos:main Aug 8, 2023
@val-ms val-ms deleted the CLAM-2410-new-coverity-issues branch August 8, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants